Need help with teleports
#1

Hey there

I got jak's gamemode of dm/rp etc and I tried to edit it , read follow the pawn code od /sfa command

PHP код:
CMD:sfa(playeridparams[])
{
    
SpawnCheck(playerid);
    
PassengerCheck(playerid);
    if(
Restriction(playerid) == 1)
    {
        
SendClientMessage(playerid, -1"» "red"You cannot use this command at the moment.");
        return 
1;
    }
    
SetCameraBehindPlayer(playerid);
    if(
IsPlayerInAnyVehicle(playerid))
    {
        
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
        
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0);
        
SetVehiclePos(GetPlayerVehicleID(playerid), -1504.4640,-322.4451,6.7357);
        
SetVehicleZAngle(GetPlayerVehicleID(playerid), 13.3832);
    }
    else
    {
        
SetPlayerInterior(playerid0);
        
SetPlayerVirtualWorld(playerid0);
        
SetPlayerPos(playerid, -1514.8895,-331.4654,6.8848);
        
SetPlayerFacingAngle(playerid359.1662);
    }
    
SendTeleportMessage(playerid"San Fierro Airport""sfa");
    return 
1;

Can someone explain me how to make some other commands like ls,lva,sf,lsa with the above code?

Thanks and do not judge me I am just a new scripter
Reply


Messages In This Thread
Need help with teleports - by SecretBoss - 01.01.2015, 18:59
Re: Need help with teleports - by Boot - 01.01.2015, 19:27
Re: Need help with teleports - by Neos07 - 01.01.2015, 19:31
Re: Need help with teleports - by SecretBoss - 01.01.2015, 19:39
Re: Need help with teleports - by Boot - 01.01.2015, 19:51
Re: Need help with teleports - by SecretBoss - 01.01.2015, 19:54
Re: Need help with teleports - by MohanedZzZ - 01.01.2015, 20:01
Re: Need help with teleports - by Boot - 01.01.2015, 20:06
Re: Need help with teleports - by SecretBoss - 01.01.2015, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)