27.03.2015, 06:02
And shouldn't you use return 1 here?
Otherwise you're telling them they spawned as an official X factor clan, but you disallow them to switch to that class by using return 0?
EDIT:
For correct indentation do this:
https://sampwiki.blast.hk/wiki/Errors_Li...se_indentation
pawn Code:
case 36..39:
{
new name[ MAX_PLAYER_NAME ];
SetPlayerPos(playerid,1262.5465,-1260.1057,13.2015);
SetPlayerCameraPos(playerid,1265.7855,-1262.5286,13.2771);
SetPlayerCameraLookAt(playerid,1262.5465,-1260.1057,13.2015);
SetPlayerFacingAngle( playerid,230.0 );
GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~[RESTRICTED] Double X Factors", 3000, 3 );
ApplyAnimation( playerid, "STRIP", "PUN_HOLLER", 4.0, 1, 1, 1, 1, 1 );
if(strfind(name,"[X_X]",true) != -1)
{
SendClientMessage(playerid, WORKERS_COLOR, "You have spawned as an official X Factors clan member.");
return 0; // here
}
}
EDIT:
For correct indentation do this:
pawn Code:
return 0;
}
}
}
return 1;
}