07.03.2012, 09:03
Can AnyOne Give Me Code Of /MakeHuman Or /MakeZombie ..........??
CMD:makehuman(playerid,params[]) // ZCMD i hope you use that
{
new id; // id we want to fill in the id
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] <= 0) return SendClientMessage(playerid, COLOR_CRIMSON,"[System]: ACCESS DENIED"); // Checks if you are an admin
if(sscanf(params, "u", id)) return SendClientMessage(playerid,COLOR_LIGHTBLUE -1, "[SYNTAX]: /sethuman [PlayerID]"); // if you did something wrong it will say this but here if(sscanf(params, "u", id)) notice the ,id after U
if(IsPlayerAdmin(id) || PlayerInfo[id][pAdminLevel] >= PlayerInfo[playerid][pAdminLevel]) return SendClientMessage(playerid, COLOR_CRIMSON,"[System]: This player is the same or higher admin level then you");// to check if the player doesnt write down another admins name to change him notice id here to
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_CRIMSON,"[ERROR]: Invalid Player ID");//checks if the ID is connected
else {
gTeam[id] = 2; //sets the team put your variable of teams here
SCM(id,red,"An admin has set your team to human"); //sends the message to the player
SetPlayerHealth(id, 0); //sets the health off the player to 0 so he will die to change
}
return 1; //returns
}