30.04.2012, 14:11
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(gTeam[playerid] == TEAM_HUMAN)
{
GameTextForPlayer(playerid,"~w~ Vocк deve ser um zumbi para obter a cura para se tornar um ser ~g~ humano",6000,4);
}
if(gTeam[playerid] == TEAM_ZOMBIE)
{
GameTextForPlayer(playerid,"~w~ Vocк estб sendo~g~ Curado",6000,4);
SetTimerEx("Cura", 2*60000, false, "i", playerid);
//Anim, procure na biblioteca de anims por FALL
}
return 1;
}
forward Cura(playerid);
public Cura(playerid) {
SetPlayerTeam(playerid,TEAM_HUMAN);
gTeam[playerid] = TEAM_HUMAN;
SetPlayerSkin(playerid,26);
GivePlayerWeapon(playerid,24,100);
SetPlayerColor(playerid,GREEN);
SendClientMessage(playerid, -1, "Vocк virou humano..!");
return true;
}