OnPlayerRequestClass
#1

This is my code:
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
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"50006);
    else if(
classid==285) return GameTextForPlayer(playerid"~b~~h~SWAT"50006);
    else if(
classid==287 && classid==179) return GameTextForPlayer(playerid"~b~~h~Army"50006);
    else if(
classid==42 && classid==268) return GameTextForPlayer(playerid"~y~~h~Mechanic"50006);
    else if(
classid==142 && classid==220) return GameTextForPlayer(playerid"~y~~h~Taxi Driver"50006);
    else if(
classid==274 && classid==275 && classid==276) return GameTextForPlayer(playerid"~y~~h~Pizza Boy"50006);
    else 
GameTextForPlayer(playerid"~y~~h~Civillians"50006);
    return 
1;

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.
Reply


Messages In This Thread
OnPlayerRequestClass - by ATGOggy - 03.12.2014, 14:12
Re: OnPlayerRequestClass - by AIped - 03.12.2014, 14:15
Re: OnPlayerRequestClass - by ATGOggy - 03.12.2014, 14:18
Re: OnPlayerRequestClass - by ATGOggy - 03.12.2014, 14:39
Re: OnPlayerRequestClass - by PowerPC603 - 03.12.2014, 14:53
Re: OnPlayerRequestClass - by ATGOggy - 03.12.2014, 15:31
Re: OnPlayerRequestClass - by ATGOggy - 04.12.2014, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)