[pawn]if(strcmp(cmd, \"/houseentrance\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] != 4)
{
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 33\");
return 1;
}
else
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
format(string,sizeof(string),\"Entrance of House %d to %f - %f - %f\",proplev,X,Y,Z);
ABroadCast(COLOR_YELLOW,string,5);
HouseInfo[proplev][hEntrancex] = X;
HouseInfo[proplev][hEntrancey] = Y;
HouseInfo[proplev][hEntrancez] = Z;
OnPropUpdate();
return 1;
}
}
}[/pawn]
tedd be a mod-odba és megy is... GF-bõl szedtem ki, de mivel GF a dt is np
segítettem mehet a +