PDA

View Full Version : What Is The Problem In This?


Youssef214
21/03/2014, 11:51 AM
I Receive %s (%d) Has Been On GangWar Mod And it Sends me SERVER: Unknown command. But It Doesn't Teleport Me To The Team Spawn In These Codes:

dcmd_gangwar(playerid, params[])
{
if(gangwarmod[playerid] == 0)
{
new admin_name[MAX_PLAYER_NAME], Message[128];
GameTextForPlayer(playerid, "~r~ GangWar Mod", 5000, 5);
GetPlayerName(playerid, admin_name, MAX_PLAYER_NAME);
format(Message, sizeof(Message), "%s (%d) Has Been On GangWar Mod.", admin_name, playerid), SendClientMessageToAll(0xFF9900AA, Message);
SetPlayerTeamColor(playerid);
Freemod[playerid] = 0;
drylakemod[playerid] = 0;
gangwarmod[playerid] = 1;
SetPlayerTeamSpawn(playerid);
}
else if(gangwarmod[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000FF, "You Are Already On GangWar Mod!");
}
}

Please Help.

ReD_HunTeR
21/03/2014, 12:34 PM
dcmd_gangwar(playerid, params[])
{
if(gangwarmod[playerid] == 0)
{
new admin_name[MAX_PLAYER_NAME], Message[128];
GameTextForPlayer(playerid, "~r~ GangWar Mod", 5000, 5);
GetPlayerName(playerid, admin_name, MAX_PLAYER_NAME);
format(Message, sizeof(Message), "%s (%d) Has Been On GangWar Mod.", admin_name, playerid), SendClientMessageToAll(0xFF9900AA, Message);
SetPlayerTeamColor(playerid);
Freemod[playerid] = 0;
drylakemod[playerid] = 0;
gangwarmod[playerid] = 1;
SetPlayerTeamSpawn(playerid);
}
else if(gangwarmod[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000FF, "You Are Already On GangWar Mod!");
}
return 1;
}
try this?