Unnamed
public text v1 · immutableif(strcmp(cmdtext, "/up", true) ==0)
{
new upnum[256], index;
upnum = strtok(cmdtext, index);
if(!strlen(upnum))
{
SendErrMsg(playerid, "Usage: /up <Amount to go up by>");
}
else
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SendInfMsg(playerid, "You are moved up");
SetPlayerPos(playerid, x, y, z + strval(upnum));
}
return 1;
}