02.04.2013, 19:29
pawn Код:
public StoreRob1()
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(Robber[i] == 1)
{
if(PlayerToPoint(30, i, -28.4819,-89.3805,1003.5469))
{
SendClientMessage(i, Yellow," 1 min has gone");
SetTimer("StoreRob2",60000,0);
return 1;
}
else
{
SendClientMessage(i, Grey,"You ran like a little girl");
Robber[i] = 0;
return 1;
}
}
return 1;
}
public StoreRob2()
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(Robber[i] == 1)
{
if(PlayerToPoint(30, i, -28.4819,-89.3805,1003.5469))
{
SendClientMessage(i, Yellow," 2 min has gone");
SetTimer("StoreRob3",5,0);
return 1;
}
else
{
SendClientMessage(i, Grey,"You ran like a little girl");
Robber[i] = 0;
return 1;
}
}return 1;
}
public StoreRob3()
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(Robber[i] == 1)
{
if(PlayerToPoint(30, i, -28.4819,-89.3805,1003.5469))
{
SendClientMessage(i, Yellow," You have Robbed the Store, well done, you get $182");
GivePlayerMoney(i,182);
Robber[i] = 0;
return 1;
}
else
{
SendClientMessage(i, Grey,"You ran like a little girl");
Robber[i] = 0;
return 1;
}
}return 1;
}