Posts: 377
Threads: 78
Joined: Dec 2009
Hey, How's everyone?
Guys, I have Raven's Gamemode.. I know it's based on Godfather but, I don't know how to add more houses in it. Could you please help me out?
Thank you!
Posts: 1,426
Threads: 56
Joined: Dec 2010
Reputation:
0
Take a look into the Raven's Roleplay thread. It's there at the right section. ,, Commands ". I don't really know Raven's. But did you checked /createhouse or something like that.
Posts: 377
Threads: 78
Joined: Dec 2009
Hmm I think it's something about adding lines to ini file or txt.. I'll see if there was a properties ini file
Posts: 377
Threads: 78
Joined: Dec 2009
Quote:
Originally Posted by Fat
pawn Код:
dcmd_createhouse(playerid, params[]) { new Float:X,Float:Y,Float:Z, price; //new count; //printf("%d",count++); if (PlayerInfo[playerid][pAdmin] < 10) return SendClientMessage(playerid,COLOR_WHITE,"You're not authroized to use this command !"); if(sscanf(params, "d", price)) return SendClientMessage(playerid, COLOR_WHITE, "[{EE5555}USAGE{FFFFFF}]: /createhouse [price]"); for(new h = 0; h < sizeof(HouseInfo); h++) { if(IsPlayerInRangeOfPoint(playerid, 1.0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0) { if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel]) { new string[128]; format(string,sizeof(string),"You need level %d for this house.",HouseInfo[h][hLevel]); SendClientMessage(playerid,COLOR_LIGHTRED,string); return 1; } GetPlayerPos(playerid, X,Y,Z); HouseInfo[h][hOwned] = 1; HouseInfo[h][hLock] = 1; HouseInfo[h][hValue] = price; HouseInfo[h][hEntrancex] = X; HouseInfo[h][hEntrancey] = Y; HouseInfo[h][hEntrancez] = Z; Create3DTextLabel("{FFFFFF}[{88EE88}Property{FFFFFF}]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1); HouseInfo[h][hPickupID] = CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); } } return 1; }
|
rep for this mate, but should it be like
/createhouse houseid entrance exit price description
Thank you ^^