Код:
switch(PlayerInfo[playerid][team])
{
case TEAM_TEACHER:
{
new Nick[MAX_PLAYER_NAME];
if(strfind(Nick, "revenngeR", true) != -1 || strfind(Nick, "null", true) != -1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You Have spawned as a teacher. Start Teaching students!");
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
SetPlayerColor(playerid,COLOR_YELLOW);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You Have spawned as a student.");
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
SetPlayerColor(playerid,COLOR_RED);
}
return 1;
}
case TEAM_STUDENT:
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You Have spawned as a student.");
PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
SetPlayerColor(playerid,COLOR_RED);
return 1;
}
}
return 1;
}
The problem is When i have nickname revenngeR i spawn as student! can someone help me?!