03.03.2012, 11:34
This command teleports the player only without a car, how can i make it that he can tp if he is inside it ?
Код:
if(!strcmp(cmdtext, "/prisongate1", true) || strcmp(cmd, "/pg1", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPlayerState(playerid) == 1) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pAdminDuty] == 1) { if(IsPlayerInRangeOfPoint(playerid, 10,1825.6194,-1538.4036,13.5469)) { SafeSetPlayerPos(playerid, 1816.2894,-1536.4828,13.3006); GameTextForPlayer(playerid, "~w~Welcome to Los Angeles prison",5000,1); SafeSetPlayerInterior(playerid,0); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /pddown",d,m,y,h,mi,s,sendername); CommandLog(string); } } } } return 1; }