All pastes #277845 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-12-13 17:02 UTC
rendered paste body
SendInf:	


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;
#
        }