08.12.2011, 05:35
Quote:
I have #include <zcmd>
can you make this do Filterscript or upload it do pastebin Код:
CMD:getgift(playerid, params[]) } if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6) //radius that they can type it in { new rand[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: return 1; } } return 1; } |
pawn Код:
CMD:getgift(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6)) //radius that they can type it in
{
new rand[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: return 1;
}
}
return 1;
}