08.11.2011, 20:40
pawn Код:
#define MAXPLAYERS 40 // topo Maximo Jogadores
new Grana[MAXPLAYERS]; // topo
forward DarGrana(playerid); // topo
//----------------------------------------------------------------------------//
public OnPlayerConnect(playerid)
{
Grana[playerid] = SetTimerEx("DarGrana", 60000, true, "i", playerid);
return 1;
}
//----------------------------------------------------------------------------//
public OnPlayerDisconnect(playerid, reason)
{
KillTimer( Grana[playerid] );
return 1;
}
//----------------------------------------------------------------------------//
public DarGrana(playerid)
{
GivePlayerMoney(playerid, 1000);
SendClientMessage(playerid, 0xFFFF00FF, "Parabйns! Voзк Recebeu R$ 1000 Reais");
return 1;
}
By ApolloRJ