03.12.2014, 14:12
This is my code:
What is the error?
When I change my skin and reaches OG Loc's skin it displays 'swat'. All other skins are showing 'Civillians'.
Someone please help me.
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1442.0126,-869.8841,52.4946);
SetPlayerFacingAngle(playerid,196.9944);
SetPlayerCameraPos(playerid,1443.3689,-873.9153,52.8520);
SetPlayerCameraLookAt(playerid,1442.0126,-869.8841,52.4946);
if(classid==71 && classid==163 && classid==164 && classid==165 && classid==211 && classid==281 && classid==282 && classid==283 && classid==284 && classid==286 && classid==288 && classid==265 && classid==266 && classid==267) return GameTextForPlayer(playerid, "~b~~h~Cops", 5000, 6);
else if(classid==285) return GameTextForPlayer(playerid, "~b~~h~SWAT", 5000, 6);
else if(classid==287 && classid==179) return GameTextForPlayer(playerid, "~b~~h~Army", 5000, 6);
else if(classid==42 && classid==268) return GameTextForPlayer(playerid, "~y~~h~Mechanic", 5000, 6);
else if(classid==142 && classid==220) return GameTextForPlayer(playerid, "~y~~h~Taxi Driver", 5000, 6);
else if(classid==274 && classid==275 && classid==276) return GameTextForPlayer(playerid, "~y~~h~Pizza Boy", 5000, 6);
else GameTextForPlayer(playerid, "~y~~h~Civillians", 5000, 6);
return 1;
}
When I change my skin and reaches OG Loc's skin it displays 'swat'. All other skins are showing 'Civillians'.
Someone please help me.