- 0
Comanda /houseentrance
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
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 !!
4 answers to this question
Recommended Posts