30.06.2014, 14:11
Step 1: Open Pawno.exe
Step 2: On the first lines add this code
new Freeze[MAX_PLAYERS];
Step 3:
After adding all the defines and includes add this code
I hope this thread will help you.
Step 2: On the first lines add this code
PHP Code:
#include <zcmd>
#define SCM SendClientMessage
Step 3:
After adding all the defines and includes add this code
PHP Code:
COMMAND:freeze(playerid,params[])
{
new id;
new Admin[24];
new string[256];
GetPlayerName(playerid,Admin,24);
if(PlayerInfo[playerid][pAdminLevel] <2) return SCM(playerid,COLOR,"( ! ) You need to bee level 2");
if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_GREY,"USE:/freeze [id]");
if(Freeze[id] == 1) return SCM(playerid,COLOR,"( ! ) Player is alerty frozen");
if(!IsPlayerConnected(id)) return SCM(playerid, COLOR, "( ! ) Player not connected");
TogglePlayerControllable(id,0);
Freeze[id] =1;
format(string,sizeof(string),"( ! ) Admin %s freeze u ",Admin);
SCM(id,COLOR,string);
return 1;
}