14.05.2016, 23:12
Quote:
Currently they can, because the code runs through to the return 1 that's at the bottom.
|
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0 .. 2: Gang[playerid] = grove;
case 3 .. 5: Gang[playerid] = ballas;
case 6 .. 8: Gang[playerid] = vagos;
case 9 .. 11: Gang[playerid] = aztecas;
case 12 .. 14:
if(GetPlayerScore(playerid) < 500)
{
Gang[playerid] = cops;
}
}
SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}