07.12.2011, 10:32
i use zcmd..so thats what i give you lol
pawn Код:
CMD:getgift(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, radius, x, y, z) //radius that they can type it in
{
new rand[5];
switch(rand)
{
case 0: GivePlayerMoney(playerid, 200); //playerid, amount
case 1: GivePlayerWeapon(playerid, 24, 200); //playerid, gunid, ammo
case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
case 3: CreateVehicle(car, X+3,Y,Z, Angle, color1, color2, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
default: return 1;
}
}
return 1;
}