public OnPlayerSpawn( playerid ){ if( GetPlayerWantedLevel( playerid ) > 0 ) { if( GetPlayerSkin( playerid ) == rendõrskinid ) { SendClientMessage( playerid, -1, \"HIBA: Nem spawnolhatsz rendõr skinnel, mert köröznek!\" ); ForceClassSelection( playerid ); return 1; } } return 1;}
stock police_skin[ 3 ];public OnGameModeInit( ){/* police_skin[ 0 ] = AddPlayerClass( 265, 1958.33, 1343.12, 15.36, 0.0, 0, 0, 0, 0, 0, 0 ); police_skin[ 1 ] = AddPlayerClass( 266, 1958.33, 1343.12, 15.36, 0.0, 0, 0, 0, 0, 0, 0 ); police_skin[ 2 ] = AddPlayerClass( 267, 1958.33, 1343.12, 15.36, 0.0, 0, 0, 0, 0, 0, 0 ); */ // vagy for( new skinid = 0, copid = 0; skinid < 300; skinid++ ) { if( !( skinid == 0 || skinid == 74 || skinid == 300 ) ) { if( 264 < skinid < 268 ) { police_skin[ copid ] = AddPlayerClass( skinid, 1958.33, 1343.12, 15.36, 0.0, 0, 0, 0, 0, 0, 0 ); copid++; } else { AddPlayerClass( skinid, 1958.33, 1343.12, 15.36, 0.0, 0, 0, 0, 0, 0, 0 ); } } }return 1;}public OnPlayerSpawn( playerid ){ if( GetPlayerWantedLevel( playerid ) != 0 ){ if( 264 < GetPlayerSkin( playerid ) < 268 ) { SendClientMessage( playerid, 0xAA0000FF, \"Ezt a karaktert nem használhatod körözés alatt.\" ); ForceClassSelection( playerid ); }}return 1;}public OnPlayerRequestClass( playerid, classid ){for( new d = 0; d < sizeof( police_skin ); d++ ){ if( classid == police_skin[ d ] && GetPlayerWantedLevel( playerid ) != 0 ){ SendClientMessage( playerid, 0xAA0000FF, \"Ezt a karaktert nem használhatod körözés alatt.\" ); return 0;}}return 1;}
public OnPlayerSpawn(playerid){TextDrawShowForPlayer(playerid,WantedLvlTxd[playerid]);TextDrawShowForPlayer(playerid,DrugTxd[playerid]);if(GetPlayerWantedLevel(playerid) > 0){ if(gTeam[playerid] == TEAM_POLICE) { SendClientMessage( playerid, -1, \"HIBA: Nem spawnolhatsz rendõr skinnel, mert köröznek!\" ); ForceClassSelection( playerid ); return 1; }}else if(gTeam[playerid] == TEAM_POLICE){SetPlayerColor(playerid,COLOR_BLUE); GivePlayerWeapon(playerid,23,500);GivePlayerWeapon(playerid,31,500);SetPlayerPos(playerid,-214.3957,976.8535,19.3327);}else if(gTeam[playerid] == TEAM_CIVIL){GivePlayerWeapon(playerid,24,500);GivePlayerWeapon(playerid,31,500);GivePlayerWeapon(playerid,32,500);SetPlayerPos(playerid,-89.3574,1227.9069,19.7422);}return 1;}