21.07.2009, 00:25
pawn Код:
if(strcmp(cmd, "/robstore", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new robmoney1 = random(20000);{
if(PlayerToPoint(100, playerid, -25.884498,-185.868988,1003.546875) || PlayerToPoint(100, playerid, 6.091179,-29.271898,1003.549438) || PlayerToPoint(100, playerid, -30.946699,-89.609596,1003.546875)
|| PlayerToPoint(100, playerid, -25.132598,-139.066986,1003.546875) || PlayerToPoint(100, playerid, -27.312299,-29.277599,1003.557250) || PlayerToPoint(100, playerid, -26.691598,-55.714897,1003.546875)) {
SendClientMessage(playerid, COLOR_WHITE, "You have succesfully robbed the Store.");
new sendername1[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername1, sizeof(sendername1));
format(string, sizeof(string), " %s has succesfully robbed the Store.", sendername1);
format(string, sizeof(string), "** $%d! Was Stolen From The Vault",robmoney1);
SendClientMessage(playerid,COLOR_DBLUE,string);
WantedLevel[playerid] = 10;
GivePlayerMoney(playerid, robmoney1);
PlayerInfo[playerid][pExp]++;
playerrobbingstore[playerid] = 1;
SetTimer("store", 600000, 1);
}
}
}
}