02.08.2013, 01:17
pawn Код:
if(!strcmp(cmdtext, "/chuter", true, 7))
{
if(!cmdtext[7]) // return usage: /chuter [amount of meters they want to go]
new Float:zPos = floatstr(cmdtext[8]);
if(!zPos) // return error: must be more than 0
new Float:pPos[3];
GivePlayerWeapon(playerid,46,1);
GetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
SetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]+zPos);
return 1;
}