21.02.2010, 23:20
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:
Thanks alot, and sory to bother but i really want to learn this functions.
Thanks again!
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 again!