01.10.2013, 19:51
pawn Код:
#include <a_samp>
#define slots 100
new bool:TaNaArena[slots];
public OnPlayerConnect(playerid)
{
TaNaArena[playerid] = false;
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/carro", cmdtext, true, 10) == 0)
{
CreateVehicle(520, 0, 0, 0, 0, 0, 0, 60);
return 1;
}
if (strcmp("/arena", cmdtext, true, 10) == 0)
{
if (TaNaArena[playerid] == false)
{
TaNaArena[playerid] = true;
SetPlayerPos(playerid, 1417.0, 1245.89, 8484.78);
} else {
SendClientMessage(playerid, -1, "vocк jб estб na arena.");
}
return 1;
}
return 0;
}