All pastes #391960 Raw Edit

Untitled

public cpp v1 · immutable
·published 2007-03-12 15:39 UTC
rendered paste body
public OnPlayerCommandText(playerid, cmdtext[]){    new cmd[256];	new index;	new tmp[256];	cmd = strtok(cmdtext,index);	strmid(tmp,cmdtext,strlen(cmd)+strlen("l"),strlen(cmdtext));	if(strcmp(cmd, "/givemoney", true) == 0 && IsPlayerAdmin(playerid) == 1) {	    	tmp = strtok(cmdtext, index);	    	if(!strlen(tmp)){	    		SendClientMessage(playerid, COLOR_YELLOW, "Usage: /givemoney [id] [amount]");			} else {	    	new idofplayer;	    	idofplayer = strval(tmp);	    	tmp = strtok(cmdtext, index);			new amount;			amount = strval(tmp);			GivePlayerMoney(idofplayer, amount);			return 1;		}	}}