why wont this work?!?! :@
#5

try this for on player request somehting

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 1||classid == 2||classid == 3||classid == 4||classid == 5||classid == 6||classid == 7)
    {
        //cop
        GameTextForPlayer(playerid,"~b~Police",1000,6);
        SetPlayerPos(playerid, -1605.654174, 716.512573, 12.003582);
        SetPlayerFacingAngle(playerid, 354.702056);
        SetPlayerCameraLookAt(playerid, -1605.654174, 716.512573, 12.003582);
        SetPlayerCameraPos(playerid, -1605.654174 + (10 * floatsin(-354.702056, degrees)), 716.512573 + (10 * floatcos(-354.702056, degrees)), 12.003582);
    }
    if(classid == 8)
    {
        //street racer
        GameTextForPlayer(playerid,"~r~Street Racer",100,6);
        SetPlayerPos(playerid, -2072.439453, 438.398468, 139.742187);
        SetPlayerFacingAngle(playerid, 321.464904);
        SetPlayerCameraLookAt(playerid, -2072.439453, 438.398468, 139.742187);
        SetPlayerCameraPos(playerid, -2072.439453 + (5 * floatsin(-321.464904, degrees)), 438.398468 + (5 * floatcos(-321.464904, degrees)), 139.742187);
        }
    return 1;
}
Reply


Messages In This Thread
why wont this work?!?! :@ - by WillyP - 28.10.2010, 23:15
Re: why wont this work?!?! :@ - by WillyP - 29.10.2010, 00:42
Re: why wont this work?!?! :@ - by willsuckformoney - 29.10.2010, 00:45
Re: why wont this work?!?! :@ - by WillyP - 29.10.2010, 00:46
Re: why wont this work?!?! :@ - by CSMajor - 29.10.2010, 02:44

Forum Jump:


Users browsing this thread: 1 Guest(s)