14.03.2011, 20:49
(
Последний раз редактировалось Sasino97; 15.03.2011 в 19:01.
)
Did, but look at this screenshot
After doing /createbiz 1500
CODE:
EDIT: Oops, too large picture xD
After doing /createbiz 1500
CODE:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[180];
new tmp[180];
new index;
cmd = strtok(cmdtext,idx);
if(strcmp(cmdtext, "/createbiz", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return 1;
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USO: /createbiz [Price].");
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X, Y, Z);
new int = GetPlayerInterior(playerid);
new vw = GetPlayerVirtualWorld(playerid);
CreateBusiness("Il Mio Business", strval(tmp), X, Y, Z, int, vw);
return 1;
}
return GameTextForPlayer(playerid,"~r~Comando Inesistente",1000,5);
}