30.08.2010, 14:49
So i save cords and make command in pd when i type /pdtest on that door to go out on other place
But when im on that place i want to make other command to can back in pd.
This is the coords
AddPlayerClass(113,1772.5833,-1548.5011,9.9133,220.9388,0,0,0,0,0,0); // IN PD
AddPlayerClass(113,246.5147,85.2871,1003.6406,1.31 34,0,0,0,0,0,0); // OUT FROM PD
Please help me fast.!
But when im on that place i want to make other command to can back in pd.
This is the coords
AddPlayerClass(113,1772.5833,-1548.5011,9.9133,220.9388,0,0,0,0,0,0); // IN PD
AddPlayerClass(113,246.5147,85.2871,1003.6406,1.31 34,0,0,0,0,0,0); // OUT FROM PD
Код:
if(!strcmp(cmdtext, "/pdtest", true)) { if(IsPlayerConnected(playerid)) { if(GetPlayerState(playerid) == 1) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerToPoint(1.0,playerid,246.5236,88.0076,1003.6406)) { SetPlayerPos(playerid, 1772.2122,-1547.8116,9.9074); GameTextForPlayer(playerid, "~w~PDTest",5000,1); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } } } } return 1; }