/Rob command... Help!
#5

lol

Код:
if(strcmp(cmdtext, "/Rob", true) == 0)
{
if(GetPlayerInterior(playerid) == INTERIORID) 
{
GivePlayerMoney(playerid,1000);
SetPlayerWantedLevel(playerid,6);
SetPlayerColor(playerid,AZUL);
SendClientMessage(playerid, ROJO, "You did a rob!");
return 1;
} else {
SendClientMessage(playerid,GRIS,"'You must be in a shop to commit a robbery!");
return 1;
}
return 1;
}
and if(GetPlayerArea(playerid.....))
or something like that could be good because it give more shops who have the same interiorid
Reply


Messages In This Thread
/Rob command... Help! - by Animals - 04.12.2007, 17:43
Re: /Rob command... Help! - by FujiNNN - 04.12.2007, 18:02
Re: /Rob command... Help! - by Valaskari - 04.12.2007, 18:16
Re: /Rob command... Help! - by Animals - 04.12.2007, 18:34
Re: /Rob command... Help! - by Nero_3D - 04.12.2007, 19:02
Re: /Rob command... Help! - by Valaskari - 04.12.2007, 19:22
Re: /Rob command... Help! - by [GM]The_Don - 04.12.2007, 19:23
Re: /Rob command... Help! - by Nero_3D - 04.12.2007, 19:27
Re: /Rob command... Help! - by cptnsausage - 04.12.2007, 21:49
Re: /Rob command... Help! - by GAMEOV3R - 07.12.2007, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)