if(strcmp(cmd, "/brothers", true) == 0)
{
new PLName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PLName, sizeof(PLName));
if(strcmp(PLName, "North", true) || strcmp(PLName, "Sonic", true))
{
if(Bros == false)
{
Bros = true;
MoveObject(corleonegate1, -2118.17, -80.35, 35.17,2);
MoveObject(corleonegate2, -2137.14, -80.35, 35.17,2);
SendClientMessage(playerid, COLOR_RED,"Gates Open");
}
else if(Bros == true)
{
Bros = false;
MoveObject(corleonegate1, -2123.17, -80.35, 35.17,2);
MoveObject(corleonegate2, -2131.14, -80.35, 35.17,2);
SendClientMessage(playerid, COLOR_RED,"Gates Closed");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Sorry My Friend CMD Not For You ^^!");
}
return 1;
}
if(strcmp(PLName, "North", true) || strcmp(PLName, "Sonic", true))
if(!strcmp(PLName, "North", true) || !strcmp(PLName, "Sonic", true))
|
Originally Posted by ev0lutionnn
Replace this:
Код:
if(strcmp(PLName, "North", true) || strcmp(PLName, "Sonic", true)) Код:
if(!strcmp(PLName, "North", true) || !strcmp(PLName, "Sonic", true)) |