Teleport only for PD/FBI/MILLITARY/SWAT
#1

Hello, i'm new in this scripting business but i know a few things and im trying to learn to make some teleport commands for certain factions, for example im trying to make a teleport command for a cop/fbi/millitary/swat to teleport right to the duty zone. I've done the code with the right cordonates but i can't get it to work. It works fine without the ifPlayerinfo but once i put that in its f*ckes up.

Here's the code:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(strcmp(cmdtext, "/lshq") == 0)
  if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
   {
     SetPlayerPos(playerid,254.2377,77.7456,1003.6406);
     SetPlayerInterior(playerid,6) ;
     return 1;
   }
   return 0;
}
Thanks alot, and sory to bother but i really want to learn this functions.

Thanks again!
Reply


Messages In This Thread
Teleport only for PD/FBI/MILLITARY/SWAT - by Kill3ru - 21.02.2010, 23:20
Re: Teleport only for PD/FBI/MILLITARY/SWAT - by Torran - 21.02.2010, 23:55
Re: Teleport only for PD/FBI/MILLITARY/SWAT - by Kill3ru - 22.02.2010, 00:10
Re: Teleport only for PD/FBI/MILLITARY/SWAT - by MisterTickle - 22.02.2010, 05:29
Re: Teleport only for PD/FBI/MILLITARY/SWAT - by Kill3ru - 22.02.2010, 14:42
Re: Teleport only for PD/FBI/MILLITARY/SWAT - by Torran - 22.02.2010, 14:43
Re: Teleport only for PD/FBI/MILLITARY/SWAT - by Kill3ru - 22.02.2010, 17:59

Forum Jump:


Users browsing this thread: 1 Guest(s)