up
public text v1 · immutable if(strcmp(command, "/up ", true) ==0)
{
new upnum;
upnum = strval(strtok(cmdtext, index));
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
if (upnum == 0)
{
SendErrMsg(playerid, "Usage: /up <Amount>");
}
SetPlayerPos(playerid, x, y, z + upnum);
SetCameraBehindPlayer(playerid);