- 0
Comanda vre, can't destroy this car.
-
Similar Content
-
- 3 replies
- 237 views
-
- 4 replies
- 134 views
-
- 1 reply
- 97 views
-
- 3 replies
- 347 views
-
Comanda /spec
By VAurel,
- 4 answers
- 262 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
adv1337
CMD:vre(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You need to login first.");
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_ERROR, "Nu ai gradul necesar ca sa folosesti aceasta comanda!");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You need to be in a vehicle.");
new found = 0;
for(new i = 0; i < sizeof(VehToDestroy) && found == 0; i++)
{
if(VehToDestroy == GetPlayerVehicleID(playerid))
{
vDBID[ VehToDestroy ] = 0;
DestroyVehicle(VehToDestroy);
VehToDestroy = 1;
found = 1;
}
}
if(found == 0)SendClientMessage(playerid, COLOR_ERROR, "You can't destroy this vehicle.");
return 1;
}
Can't destroy this car, si e masina simpla
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.