Paste it in (!) commands
[pawn]
else if (strcmp(cmd, "!duel", true) == 0)
{
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) {
SetPlayerPos(playerid, -1726.6647, -158.4375, 14.8683,0,0);
SendClientMessage(playerid, COLOR_BLUE, "Welcome to Duel!");
GivePlayerWeapon(playerid, 20, 100);
GivePlayerWeapon(playerid, 22, 100);
GivePlayerWeapon(playerid, 26, 100);
new plname[24],enstr[128];
GetPlayerName(playerid,plname,24);
format(enstr,sizeof(enstr),"%s has join Duel.",plname);
SendClientMessageToAll(COLOR_BLUE,enstr);
}
return 1;
}
else if (strcmp(cmd, "!fight", true) == 0)
{
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) {
SetPlayerPos(playerid, -985.8318, 554.6478, 113.7330,0,0);
SendClientMessage(playerid, COLOR_BLUE, "Welcome to Fight Zone!");
GivePlayerWeapon(playerid, 23, 100);
GivePlayerWeapon(playerid, 20, 100);
GivePlayerWeapon(playerid, 32, 100);
new plname[24],enstr[128];
GetPlayerName(playerid,plname,24);
format(enstr,sizeof(enstr),"%s has join fight zone.",plname);
SendClientMessageToAll(COLOR_BLUE,enstr);
}
return 1;
}
else if ( strcmp( cmd, "!exit", true ) == 0 )
{
SetPlayerPos( playerid, -825.6501, -340.4714, 11.0712,0,0 );
new plname[24],enstr[128];
GetPlayerName(playerid,plname,24);
format(enstr,sizeof(enstr),"%s Has Left the current location.",plname);
SendClientMessageToAll(COLOR_BLUE,enstr);
return 1;
}[/pawn]