06.05.2012, 16:10
Quote:
dei uma olhada mas с tem o sistema de mata o chuck e vira o chuck, queria sу isso.
|
pawn Код:
new bool:PaintBall[MAX_PLAYERS];
new KillsPaintBall[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
new str[128], killername[MAX_PLAYER_NAME];
KillsPaintBall[killerid] = 0;
if(PaintBall[playerid] == true)
{
SetPlayerPos(playerid, 0, 0, 0); //Pos do PaintBall
if(PaintBall[killerid] == true)
{
KillsPaintBall[killerid] ++;
if(KillsPaintBall[killerid] >= 10)
{
GetPlayerName(killerid, killername, sizeof(killername));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PaintBall[i] == true)
{
format(str, sizeof(str), "%s й o Chucl Norris! Jб matou 10 no PaintBall sem morrer!");
SendClientMessage(i, -1, str);
}
}
}
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/paintball", cmdtext, true, 10) == 0)
{
PaintBall[playerid] = true;
SetPlayerPos(playerid, 0, 0, 0); //Pos do PaintBall
SendClientMessage(playerid, -1, "Bem Vindo ao PaintBall");
return 1;
}
return 0;
}