30.08.2010, 12:29
okay i have a simple command made in zcmd and sscanf but it doesnt work, help me find out what is wrong with it:
everything works except it doesnt give me a parachute?!!!!!!!!!!!!! wwhaaaaaaaaaaaaat theeeee hel is going on? like if i type /skydive 100 it will send my z+100 but i will be falling with no parachute
pawn Код:
CMD:skydive(playerid,params[])
{
new height;
if(sscanf(params,"i",height))
{
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /skydive [HEIGHT]");
return 1;
}
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z+height);
GivePlayerWeapon(playerid,371,1);
return 1;
}