- 0
Comanda /houseentrance
-
Similar Content
-
- 4 replies
- 128 views
-
Comanda /fly
By xLinix96,
- 6 replies
- 3,251 views
-
- 10 replies
- 1,199 views
-
- 11 replies
- 258 views
-
Cine ma poate ajuta pentru comanda cu /masina un delay de un minut iar pentru comanda /comanda7368 sa poata sa o foloseaca doar odata ?
By GamerulFOX,
- 8 replies
- 485 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 .
[pwn]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"[pwn]
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
4 answers to this question
Recommended Posts