09.03.2012, 12:33
PHP код:
//No Topo do Gamemode
//---------------------------------------------------------------------------//
#include <Dini>
//---------------------------------------------------------------------------//
//No OnplayerCommadText
if(strcmp("/grana", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON.");
GivePlayerMoney(playerid,100000);
return 1;
}
//---------------------------------------------------------------------------//
//no OnPlayerConnect
if(dini_Isset("Dinheiro.ini",PlayerName(playerid))) GivePlayerMoney(playerid,dini_Int("Dinheiro.ini",PlayerName(playerid)));
//---------------------------------------------------------------------------//
// no OnplayerDisconnect
dini_IntSet("Dinheiro.ini",PlayerName(playerid),GetPlayerMoney(playerid));
//---------------------------------------------------------------------------//
// no Ongamemodeinit
if(!fexist("Dinheiro.ini")) dini_Create("Dinheiro.ini");
//---------------------------------------------------------------------------//