[help] I'm facing a really dump problem
#1

I'm currently working on a server, I have a UAV system and killstreaks and stuff, but now I'm stuk with the spawn screen xD. everything is working but the angle isn't responding. please help

PHP код:

public OnGameModeInit()
    
AddPlayerClass(02333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(12333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(22333.4312239.676626.4097280.9999000000);
    
AddPlayerClass(102333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(112333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(122333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(162333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(202333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(272333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(282333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(292333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(452333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(822333.4312239.676626.4097280.9999000000);
     
AddPlayerClass(892333.4312239.676626.4097280.9999000000);
public 
OnPlayerRequestClass(playeridclassid)
         
SetPlayerPos(playerid2333.4312,239.6766,26.4097);
         
SetPlayerCameraPos(playerid,2333.4153,246.1456,26.4079);
         
SetPlayerCameraLookAt(playerid2333.4312,239.6766,26.4097);
         
AddPlayerClass(02333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(12333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(22333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(102333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(112333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(122333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(162333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(202333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(272333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(282333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(292333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(452333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(822333.4312239.676626.4097280.9999000000);
         
AddPlayerClass(892333.4312239.676626.4097280.9999000000);
         
SetPlayerFacingAngleplayerid280); 
Reply
#2

There is no need for AddPlayerClass in OnPlayerRequestClass.
It only needs to be in OnGameModeInIt.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
         SetPlayerPos(playerid, 2333.4312,239.6766,26.4097);
         SetPlayerCameraPos(playerid,2333.4153,246.1456,26.4079);
         SetPlayerCameraLookAt(playerid, 2333.4312,239.6766,26.4097);
         SetPlayerFacingAngle( playerid, 280);
// More Code
Reply
#3

But in public OnGameModeInit() you can't call for a playerid, or is that unnecessary aswell ?

EDIT: DAMN I'M A DUMB M*THAF*CKA xD got it
Reply
#4

Yes, indeed we cannot call for playerid in OnGameModeInIt(), but there is no playerid parameter in AddPlayerClass.
Reply
#5

is there any errorsi tested and i got 4 errors
Reply
#6

Quote:
Originally Posted by [A]ndrei
Посмотреть сообщение
is there any errorsi tested and i got 4 errors
What are the errors?
Reply
#7

Код:
public OnPlayerRequestClass(playerid, classid) 
         SetPlayerPos(playerid, 2333.4312,239.6766,26.4097); 
         SetPlayerCameraPos(playerid,2333.4153,246.1456,26.4079); 
         SetPlayerCameraLookAt(playerid, 2333.4312,239.6766,26.4097); 
         SetPlayerFacingAngle( playerid, 280);
         AddPlayerClass(0, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(1, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(2, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(10, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(11, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(12, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(16, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(20, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(27, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(28, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(29, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(45, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(82, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0); 
         AddPlayerClass(89, 2333.4312, 239.6766, 26.4097, 280.9999, 0, 0, 0, 0, 0, 0);
try this...
Reply
#8

......
Quote:

there is no playerid parameter in AddPlayerClass.

well then, what the fuck mate.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
         SetPlayerPos(playerid, 2333.4312,239.6766,26.4097);
         SetPlayerCameraPos(playerid,2333.4153,246.1456,26.4079);
         SetPlayerCameraLookAt(playerid, 2333.4312,239.6766,26.4097);
         SetPlayerFacingAngle( playerid, 280);
         return 1;
}
Reply
#9

can someone give me ALL the skinplease
Reply
#10

pawn Код:
public OnGameModeInit()
{
    for(new skinid = 0; skinid < 300; skinid++)
    {
        if(IsValidSkin(skinid))
        {
            AddPlayerClass(skinid, . . .);
        }
    }
    return true;
}

stock IsValidSkin(skinid)
{
    if(skinid < 0 || skinid > 300) return false;
    switch(skinid)
    {
        case 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return false;
    }
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)