All pastes #165855 Raw Edit

mabako

public cpp v1 · immutable
·published 2006-09-10 07:15 UTC
rendered paste body
public OnPlayerCommandText(playerid, cmdtext[]){	 if (strcmp(cmdtext,"/help",true)==0)	 {	 	SendClientMessage(playerid, HOT_PINK,"Cherry Poppers Deathmatch is a deathmatch created by Cherry Poppers clan.");	 	SendClientMessage(playerid, HOT_PINK,"It's mainly based in Angel Pine with small links to San Fierro and Los Santos,");	 	SendClientMessage(playerid, HOT_PINK,"this is so the city dwellers can use mod shops, banks and extra ammunations.");	 	SendClientMessage(playerid, HOT_PINK,"For command list please type '/commands\'.");	 		 	return 1;	 } 	new idx;        new cmd[30];        cmd = strtok(cmdtext,idx); 	 if (strcmp(cmd,"/arrest",true)==0)	 {	 	new tmp[256];	 	new arrestid;	 	new vehicleid = GetPlayerVehicleID(playerid);	 		 	tmp = strtok(cmdtext, idx);		arrestid = strval(tmp);	 			if (vehicleid != 0)	 	{	 		if(IsPlayerConnected(arrestid))	 		{	 			PutPlayerInVehicle(arrestid,vehicleid,2);	 		}	 		else	 		{	 			SendClientMessage(playerid, WHITE,"Please arrest a connected player."); 		   } 		   return 1;	 	}	 	else	 	{	 		SendClientMessage(playerid,WHITE,"You must be in a vehicle to arrest!");	 	}	 	return 1;	 }	return 1;}