05.01.2011, 22:52
Quote:
Tenta ae:
Код:
if(strcmp(cmd, "/home", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pPHousekey] != 255) { if(PlayerOnMission[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } else { SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPHousekey]][hEntrancez], 4.0); GameTextForPlayer(playerid, "~w~Waypoint set ~r~Home", 5000, 1); gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME; } } else { GameTextForPlayer(playerid, "~w~Voce nao tem casa", 5000, 1); } } return 1; } |