01.01.2015, 18:59
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
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
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(playerid, params[])
{
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(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, -1514.8895,-331.4654,6.8848);
SetPlayerFacingAngle(playerid, 359.1662);
}
SendTeleportMessage(playerid, "San Fierro Airport", "sfa");
return 1;
}
Thanks and do not judge me I am just a new scripter