Quote:
Originally Posted by DiGiTaL_AnGeL
You'll need YCMD and sscanf. Use the search function to find them. Here is the command:
pawn Код:
YCMD:setzm(playerid, params[], help) { #pragma unused params if(IsPlayerAdmin(playerid))//this will work only for rcon admins, change it to your admin variable { new recid; if(sscanf(params, "u", recid)) return SCM(playerid, 0xFF0000FF, "USAGE : /setzm [player id/name]"); else { ZombieSetup(recid); SpawnPlayer(recid); SCM(playerid, 0xFF0000FF, "You're a zombie!");//change the message SetPlayerHealth(recid, 1000);//so it's going to be hard to kill him } } return 1; }
|
This is that i chose one id that will be zombie other will be humans ?
Like:
i chose 2 ID
and 0,1,3,4,5,6,7,8,9,10 will be humans ?