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; } else if (strcmp(cmdtext,"/arrest",true)==0) // New code { new idx; new tmp[256]; new arrestid; tmp = strtok(cmdtext, idx); arrestid = strval(tmp); if (IsPlayerInAnyVehicle(playerid)==1) { if(IsPlayerConnected(arrestid)==1) { new vehicleid = GetPlayerVehicleID(playerid); PutPlayerInVehicle(arrestid,vehicleid,2); } else { SendClientMessage(playerid, WHITE,"Please arrest a connected player."); } } else { SendClientMessage(playerid,WHITE,"You must be in a vehicle to arrest!"); } return 1; } // New code return 1;}