rendered paste bodySendInf:
SendInfMsg(playerid, message[])
{
new string[256];
format(string, sizeof(string), "* %s",message);
SendClientMessage(playerid,0x299637C8,string);
return 1;
}
Cmd:
#
new upcmd[256], upindex;
#
upcmd = strtok(cmdtext, upindex);
#
#
if (strcmp(upcmd, "/up", true)==0)
#
{
#
new upnum;
#
upnum = strval(strtok(cmdtext, upindex));
#
new Float:x, Float:y, Float:z;
#
GetPlayerPos(playerid, x, y, z);
#
SendInfMsg(playerid, "You are moved up");
#
SetPlayerPos(playerid, x, y, z + upnum);
#
return 1;
#
}