angel
-
Posts
179 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
News
Documentation
Posts posted by angel
-
-
Pune comanda asta:
if(strcmp(cmd, "/engine", true) == 0 || strcmp(cmd, "/e", true) == 0){
new vid = GetPlayerVehicleID(playerid);
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if (gEngine[playerid] == 0)
{
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~w~Engine ~g~~h~Start", 2000, 5);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
gEngine[playerid] = 1;
}
else if (gEngine[playerid] == 1)
{
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~w~Engine ~r~~h~Stop", 2000, 5);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
gEngine[playerid] = 0;
}
}
}
return 1;
}
-
Ai pus forward la public TriviaEvent?
-
widualkpk,termina cu posturile +1,e inutil.Din cate vad faci si double post.
-
Ai masini personale pe server? E bagat in GM sau e FS?
-
Din cate stiu eu aici nu se cer scripturi,aici se cere ajutor pentru un anumit script cu are ai probleme si nu reusesti sa le rezolvi.
-
Cineva ma poate ajuta cu comanda?
Multumesc!
-
Nu cred ca e buna coordonata bagata la masini.
-
RemovePlayerFromVehicle(playerid);
Adauga sub SendClientMessage
-
Buna,am facut o comanda /estart,adica (event start).Dar nu reusesc sa fac sa pot scrie titlul,locatia,time,description.Cand dau /estart scriu titlul si prize...apare dar restu nu merge sa scri nimic.
if(strcmp(cmd, "/estart", true) == 0){
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /estart [Title] [Prize] [Location] [Time] [Description]");
return 1;
}
new para1[20];
new title[24];
new location[60];
new description[64];
new offset = idx;
new time = strval(tmp);
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
title[idx - offset] = EOS;
location[idx - offset] = EOS;
description[idx - offset] = EOS;
if(PlayerInfo[playerid][pLevel] >= 10)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
new prize = strval(tmp);
new time = strval(tmp);
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(str, 128, "Event: Title: %d, Prize: $%s,Location: %d, Time: %s", title, prize, location, time);
SendClientMessageToAll(COLOR_YELLOW, str);
format(str, 128, "Event: Organizer: %d, Description: %d, ",sendername ,description);
SendClientMessageToAll(COLOR_YELLOW, str);
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " ");
}
}
return 1;
}
-
Salut,am facut o comanda cu care normal ar trebui sa spawnez masini personale direct din joc,si sa se puna direct in cars.cfg.Fara sa trebuiasca sa dau restart la server.Din pacate masina se spawneaza dar nu este personala....
http://pastebin.com/QSVBYEjy
-
Rezolvat!Scuze de duble post..
-
Trebuie sa le aranjezi,nu sunt aranjate bine.
-
Foarte frumos 5/5 Gg
-
Invata engleza si vezi atunci ce zice in eroare ;)
-
Nu iti citeste includeul.Ai pus la inceputul gm-ului #include <cps> ?
-
Am incercat,nu merge.Tot telefonul ala e
-
Se poate sa schimbi telefonul din samp?Adica cand playerul suna pe cineva sau raspunde si foloseste acel anim special e un telefon mai vechi.Se poate pune unul din 0.3c in loc de acela?
-
Scuze de dublu post...stie cineva cum se face?Eu nu prea am inteles
-
Am pus la OnPlayerLogin sub:
printf("%s has logged in.",playername2);am pus asa
new ghour, gminute;new day,month,year;
getdate(day,month,year);
gettime(ghour,gminute);
new var2[50];
format(var, 50, "LastOn=%02d.%02d.%d %02d:%02d\n",day,month,year,ghour,gminute);fwrite(hFile, var);
new laston[256];laston=dini_Get(string,"LastOn");
Si la fiecare dialog de login am pus asa:
format(loginstring,sizeof(loginstring),"{A4D0EB}Welcome back,{1892DE}%s!\n \n{A4D0EB}Please enter your password below to login to your account.\n \n'{FFFFFF} Last Login: {1892DE}%d.%d.%d %s:%s{FFFFFF}'",loginname,laston,hour, minuite);si mia dat erorile astea ...
D:\Deskop\Scripting\samp03\gamemodes\reg.pwn(2780) : error 017: undefined symbol "laston"D:\Deskop\Scripting\samp03\gamemodes\reg.pwn(6111) : error 017: undefined symbol "laston"
D:\Deskop\Scripting\samp03\gamemodes\reg.pwn(9652) : warning 219: local variable "ghour" shadows a variable at a preceding level
D:\Deskop\Scripting\samp03\gamemodes\reg.pwn(9652) : warning 219: local variable "gminute" shadows a variable at a preceding level
D:\Deskop\Scripting\samp03\gamemodes\reg.pwn(9657) : error 017: undefined symbol "var"
D:\Deskop\Scripting\samp03\gamemodes\reg.pwn(9657) : error 017: undefined symbol "hFile"
D:\Deskop\Scripting\samp03\gamemodes\reg.pwn(9658) : error 017: undefined symbol "dini_Get"
D:\Deskop\Scripting\samp03\gamemodes\reg.pwn(9658) : error 033: array must be indexed (variable "laston")
D:\Deskop\Scripting\samp03\gamemodes\reg.pwn(9656) : warning 204: symbol is assigned a value that is never used: "var2"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
-
Cu gettime si getdate am incercat...dar nu merge,nu apare data si ora.Cred ca e de la %d .Nu cred ca asa trebuia.
-
Nu,tot apare 00.00.0 data...si ora 00:00
-
Salut,am incercat sa fac sa apara la login box data si ora ultimei logari.Cum e si la b-zone si after.Am incercat sa fac asa:
if(fexist(string)){
gPlayerAccount[playerid] = 1;
new loginstring[190];
new loginname[64];
new ghour, gminute;
new day,month,year;
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"{A4D0EB}Welcome back,{1892DE}%s!\n \n{A4D0EB}Please enter your password below to login to your account.\n \n'{1892DE}%02d.%02d.%d %02d:%02d{FFFFFF}'",loginname,day,month,year,ghour,gminute);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Quit");
return 1;
}
Si la OnPlayerLogin am pus:
new day,month,year;new ghour,gminute;
getdate(day,month,year);
gettime(ghour,gminute);
-
Pai lasa ca stiu moderatorii sa isi faca treaba.Daca ii da ceva ii da,daca nu,nu...
-
Secret" post="83662" timestamp="1310107893"]
NU TREBUIA SA MAI FACI UN TOPIC!!!CER WARN 20%
Acesta a fost primu topic facut de el http://www.sa-mp.ro/forum/index.php/topic,13733.msg83657.html#new
apoi mia dat pm si iam explicat sa puna define,dar tot a facut un topic nou
Lasa ma sa faca topic e treaba lui nu a ta.Dc te bagi in seama si ceri warn up?Asa ma pot baga si eu in seama si sa cer warn up pt tine ca dai reply.
Problema
in Arhivă probleme
Posted
Care e linia 2447?