23.02.2011, 19:00
I have created some of /addhouse command but I really dont know what to do next
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/addhouse", cmdtext) == 0)
{
new name[128], price, Float:FX,Float:FY,Float:FZ;
if(sscanf(params, "s[128]d",price,name)) SendClientMessage(playerid, COLOR_GREY, "Usage: /addhouse [price] [name]");
CreateHouse(name, price, FX, FY, FZ);
return 1;
}
Need something from the script to fill this? ask =)
Thank you allready =)
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/addhouse", cmdtext) == 0)
{
new name[128], price, Float:FX,Float:FY,Float:FZ;
if(sscanf(params, "s[128]d",price,name)) SendClientMessage(playerid, COLOR_GREY, "Usage: /addhouse [price] [name]");
CreateHouse(name, price, FX, FY, FZ);
return 1;
}
Need something from the script to fill this? ask =)
Thank you allready =)