pawn Код:
if(strcmp( cmd, "/skydive", true ) == 0 )
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_GREY, "USAGE: /skydive [metters]");
return 1;
}
new input;
input = strval(tmp);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid,X, Y, input);
GivePlayerWeapon(playerid,46,1);
return 1;
}