01.09.2016, 12:57
Hi
i'm trying to make a command so the player can find his door's location (/mydoor)
Код:
enum pInfo { ... ... ... pDoor1, pDoor2, pDoor3 } new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
CMD:ddowner(playerid, params[]) { new door; ... ... ... ... PlayerInfo[playerid][pDoor1] = door;
Код:
CMD:mydoor(playerid, params[]) { if(PlayerInfo[playerid][pDoor1] == 1) { SetPlayerCheckpoint(playerd,DDinfo[pDoor1][Ex],DDinfo[pDoor1][Ey],DDinfo[pDoor1][Ez], 3.0); } else { SendClientMessage(playerid, COLOR_WHITE, "You don't own a door."); } return 1; }