- 0
Ajutor comanda /v lock1 , /v lock2
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
bcretu64
Asa am gamemode-ul Xtr Zone si cand vreau sa dau /v lock1 sau /v lock2 si scrie Vehicle Locked cu textdraw tot pot sa intru in ea ma ajutati va rog uite aici liniile pentru "lock":
[pawn] else if(strcmp(x_nr,"lock",true) == 0)
{
new keycar = PlayerInfo[playerid][pPelikey];
if(keycar != 999)
{
new locked[256];
locked = strtok(cmdtext, idx);
if(EliInfo[keycar][eLock] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked");
GameTextForPlayer(playerid, string, 4000, 3);
EliInfo[keycar][eLock] = 0;
OnPropUpdate();
return 1;
}
else if(EliInfo[keycar][eLock] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~w~Vehicle~n~~r~Locked");
GameTextForPlayer(playerid, string, 4000, 3);
EliInfo[keycar][eLock] = 1;
OnPropUpdate();
return 1;
}
}[/pawn]
va rog ajutati-ma spunetimi ce trebuie sa modific
Multumesc ! Anticipat...
1 answer to this question
Recommended Posts