0% found this document useful (0 votes)
27 views2 pages

SAMP-IL Array Teleports System v1.0 by LustcheR

Uploaded by

hakernayan12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

SAMP-IL Array Teleports System v1.0 by LustcheR

Uploaded by

hakernayan12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

#include <a_samp>

#include "../include/gl_common.inc"

#define Color_Orange 0xFF9900FF

enum TeleportsArry
{
Command[24],
Float:vPosX,
Float:vPosY,
Float:vPosZ,
Float:vPosA,
Float:pPosX,
Float:pPosY,
Float:pPosZ,
Float:pPosA,
VirtualW,
Interior,
ColorMessage[11],
Message[64]
};
new Tele[][TeleportsArry] =
{
{"/Tele", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, -1, "Message"}
};

public OnPlayerCommandText(playerid, cmdtext[])


{
new cmd[256], idx;
cmd = strtok(cmdtext, idx);

for(new T = 0; T < sizeof(Tele); T ++)


{
if(strcmp(cmd, Tele[T][Command], true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), Tele[T][vPosX],
Tele[T][vPosY], Tele[T][vPosZ]);
SetVehicleZAngle(GetPlayerVehicleID(playerid), Tele[T][vPosA]);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), Tele[T]
[VirtualW]);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), Tele[T]
[Interior]);
}
else
{
SetPlayerPos(playerid, Tele[T][pPosX], Tele[T][pPosY], Tele[T]
[pPosZ]);
SetPlayerFacingAngle(playerid, Tele[T][pPosA]);
SetPlayerVirtualWorld(playerid, Tele[T][VirtualW]);
SetPlayerInterior(playerid, Tele[T][Interior]);
}
SendClientMessage(playerid, Tele[T][ColorMessage], Tele[T]
[Message]);
return 1;
}
}
return 0;
}

You might also like