25.05.2012, 13:52
Hello, i was playing a server before they had a full custom bank and stuff like that..
how can i get a robbank command?
ZCMD please.
how can i get a robbank command?
ZCMD please.
Hello, i was playing a server before they had a full custom bank and stuff like that..
how can i get a robbank command? ZCMD please. |
CMD:rob(playerid, params[])
{
if(!strcmp(params, "bank")) // check if the player types a parameter bank like this /rob bank
{
if(IsPlayerInRangeOfPoint(playerid, x, y, z) // it checks if the player is near bank or you can use the CHECKPOINT as well
{
// rest of your code of robbing bank.
}
else
{
SendClientMessage(playerid, -1, "ERROR: You are not near/in the bank"); // error message that the player is not in or near th ebank
}
}
else
{
SendClientMessage(playerid, -1, "ERROR: /rob [bank]"); // usage
}
return 1;
}