14.04.2013, 10:55
how to make when someone want to join specific class to require score?
if(GetPlayerScore(playerid) >= 100)
{
SendClientMessage(playerid, 0xFF0000AA, "You need at least 100 score to join this team!");
}
else {
//Your code
}
}
case 0:
{
if(GetPlayerScore(playerid) > 100)
{
SendClientMessage(playerid, 0xFF0000AA, "You need over 100 score to join this team!");
}
else {
gTeam[playerid] = TEAM_POLICE; SetPlayerTeam(playerid,1);
SetPlayerColor(playerid,POLICE_COLOUR);
GameTextForPlayer(playerid, "~b~SWAT", 1000, 4);
SetPlayerPos(playerid,220.3261,1822.9734,7.536;//The Place postion
SetPlayerCameraLookAt(playerid,220.3261,1822.9734, 7.536;//Camera Look at the player
SetPlayerCameraPos(playerid,226.7491,1823.0441,7.4 141);//Camera Postiion
SetPlayerFacingAngle(playerid, 270 );//The Facing Angle
}
}