08.12.2011, 05:44
lol my bad my bad
pawn Код:
CMD:getgift(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6)) //radius that they can type it in
{
new rand = random(5);
switch(rand)
{
case 0: GivePlayerMoney(playerid, 200); //playerid, amount
case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo
case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
default: SendClientMessage(playerid, COLOR_RED,"You get coal chump");
}
}
return 1;
}