Sistema de Roubo a Banco [Tutorial]

Topo do GM
#define COLOR_PINK 0xFF66FFAA
#define COLOR_RED 0xF60000AA

forward roubar(playerid);
forward Robbank(playerid);

new robmoney[MAX_PLAYERS},Kils;
================================================
COMANDO
if(strcmp (cmd,"/roubar",true) ==0)
{
if(!IsPlayerInRangeOfPoint(playerid ,30,Poi as Coordenadas que voce Quer Onde Roube )) return SendClientMessage(playerid , COLOR_PING , "Voce Nao Esta no Cofre Banco /cofrebanco que estara Perto da Porta Azul");
if(IsPLayerInRangeOfPoint(playerid , 30 , Poi As Coordenadas que voce Quer Que Roube ))
{
new stringa[259];
new sendernome [MAX_PLAYER_NOME];
GetPlayerNome(playerid, sendername, sizeof(sendername));
formet(stringa,sizeof(stringa), "**%s esta Roubando o Banco **", sendername);
ProxDetector(15.0, playerid , stringa , COLOR_RED , COLOR_RED ,COLOR_RED , COLOR_RED , COLOR_RED);
SetTimerEx("Robbank" ,6000,0,"i", playerid);
Kils = SetTimerEx ("roubar" ,3500,1,"i",playerid);
ApplyAnimation(playerid, "ROB_BANK","CAT_Safe_Open_O" ,3.0,0,0,0,0,0);
robmoney[playerid] =random(15000);
}
return 1;
}
==================================
FUNDO DO SCRIPT

public roubar(playerid)
{
ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Open_O",3.0,0,0,0,0,0);
}

public Robbank(playerid)
{
SendClientMessage(playerid, COLOR_PINK, "Voce Roubou o Banco Agora Fuga, Para Nao ser Preso!!");
KillTimer(Kils);
ClearAnimations(playerid);
GivePlayerMoney(playerid, robmoney[playerid]);
return 1;
}
=======================


Feito por: BLACK_TWIST