Jump to content
  • 0

Comanda /houseentrance


oCasine

Question

Buna . Am si eu nevoie de putin ajutor :( . Vreau sa creez comanda /houseentrance pentru a muta o casa de exemplu .

[pawn]if(strcmp(cmd, "/houseentrance", true) == 0)

{

    if(IsPlayerConnected(playerid))

{

if(PlayerInfo[playerid][pAdmin] < 1339)

{

    SendClientMessage(playerid, COLOR_GREY, "*You are not Authorized to use this Command!");

return 1;

}

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

    SendClientMessage(playerid, COLOR_GRAD2, "SYNTAX: /houseentrance [houseid] - Moves a house to you");

return 1;

}

new proplev = strval(tmp);

if(proplev > sizeof(HouseInfo) || proplev < 0)

{

    SendClientMessage(playerid,COLOR_WHITE,"House ID must be above 0 and below 649");

    return 1;

}

else

  {

      if(proplev <= 649)

      {

          format(string, sizeof(string),"* Teleported the House Entrance"[/pawn]

Am asta de la cineva si nu stiu unde sa o pun . va rog ajutati`ma .

Y!M : [email protected] !! Cam aTaT !!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.