01.04.2014, 18:00
Um exemplo...
Nгo sei se ta certo, fiz aqui pelo fуrum.
flw.
pawn Код:
public OnPlayerSpawn(playerid){
if (noTotForest[playerid] == 1){
SetPlayerInForestMAP(playerid);
return 1;
}
return 1;
}
SetPlayerInForestMAP(playerid){
new rand = random(sizeof(RandomTotola));
SetPlayerPos(playerid, RandomTotola[rand][0], RandomTotola[rand][1],RandomTotola[rand][2]);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, 0xCECEFF7D, "Digite /sairforest para sair do evento DM.");
GivePlayerWeapon(playerid, 29, 60);
SetPlayerHealth(playerid, 40);
SetPlayerArmour(playerid, 0);
noTotForest[playerid] = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerConnected(i))
ShowPlayerNameTagForPlayer(playerid, i, false);
}
CMD:sairforest(playerid,params[]){
noTotForest[playerid] = 0;
SendClientMessage(playerid, 0xCECEFF7D, "Vocк saiu do evento bla bla bla. !");
return 1;
}
flw.