PHP код:
CMD:mydoor(playerid, params[])
{
if(PlayerInfo[playerid][pDoor1] == 1)
{
SetPlayerCheckpoint(playerd,DDinfo[PlayerInfo[playerid][pDoor1]][Ex],DDinfo[PlayerInfo[playerid][pDoor1]][Ey],DDinfo[PlayerInfo[playerid][pDoor1]][Ez], 3.0);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You don't own a door.");
}
return 1;
}