23.02.2011, 09:33
Frist time i have try something like this i get no errors im just trying to make it so that i do /impound and it will just re spawn the car im towing.
Код:
if(strcmp(cmd, "/impound", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsATOWTRUCKDRIVER(playerid))
{
if (IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
new vid;
GetVehicleTrailer(vid);
DestroyVehicle(vid);
}
}
}
return 1;
}


