Descriere: Cand utilizati aceasta comanda trebuie sa fiti neaparat intro masina , cand utilizati comanda in masina , ea se va respawna unde este pozitionata . Comanda o poate folosi doar admini si helpers .
if(strcmp(cmdtext, "/kc", true) == 0) //
{
if (PlayerInfo[playerid][pAdmin] >= 1 )
{
if(IsPlayerInAnyVehicle(playerid)) {
SetVehicleToRespawn(currentveh);
SendClientMessage(playerid, COLOR_GREEN, "Current Vehicle respawned!");
}
else {
SendClientMessage(playerid,COLOR_RED,"You're not in a vehicle");
return 1;
}
}
}
Ca sa adaugati si la helpers aceasta comanda modificati linia :
if (PlayerInfo[playerid][pAdmin] >= 1 )
Si puneti la aceasta linie || PlayerInfo[playerid][pHelper] == 1
Exemplu :
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] == 1)