25.12.2010, 13:29
Hello everybody. I had this bug the past weeks with this specific command.
No errors, no warnings, but when I type it ingame it doesn't do anything at all.
Any help, please?
pawn Код:
if(strcmp(cmdtext,"/rtv",true)==0)
{
if(PlayerInfo[playerid][pAdminLevel] > 1 && PlayerInfo[playerid][pIsGolden] == 1)
{
if (!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_RED,"AdmCmd: You must be in a vehicle to use this command.");
}
else
{
new veh = GetVehicleModel(GetPlayerVehicleID(playerid));
SetVehicleToRespawn(veh);
}
return 1;
}
else return SendClientMessage(playerid,COLOR_GRAY,"You don't have authorization.");
}
Any help, please?