- 0
Comanda /houseentrance
-
Similar Content
-
- 4 replies
- 130 views
-
- 1 reply
- 92 views
-
Comanda /spec
By VAurel,
- 4 answers
- 258 views
-
- 4 answers
- 614 views
-
- 3 replies
- 277 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
oCasine
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