06.05.2013, 15:49
Hello, i would ask if /spec work on 0.3x cause i tried every Methods but the Admin die when he use /spec, and i dont know why. So work /spec on 0.3x?
COMMAND:spec(playerid,params[]) { if(pInfo[playerid][pAdminLevel] >= 1) { new id; if(sscanf(params,"d",id)) return SendClientMessage(playerid,-1,""chat""COL_YELLOW" Usage: /sped <id>"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,""chat""COL_RED" Player is not connected!"); TogglePlayerSpectating(playerid,1); PlayerSpectatePlayer(playerid,id); SetPlayerInterior(playerid,GetPlayerInterior(id)); } else { SendClientMessage(playerid,-1,""chat""COL_RED" You do not have the right admin permissions for this command!"); } return 1; } COMMAND:specoff(playerid,params[]) { if(pInfo[playerid][pAdminLevel] >= 1) { TogglePlayerSpectating(playerid,0); } else { SendClientMessage(playerid,-1,""chat""COL_RED" You do not have the right admin permissions for this command!"); } return 1; }