15.03.2011, 16:10
lol...
today I created a new Admin's House. I tried to find it in MTA, and I converted it here. Now, the problem is that, after I created this house I created a teleport command that teleports you to the house. Here it is (The full command/createobject):
^^ This is my house
Now, this is the cmd. AFTER I typed all this, when I tried to compile it happens:
OMGWTF?!?!?!
Any solutions or w/e ?
today I created a new Admin's House. I tried to find it in MTA, and I converted it here. Now, the problem is that, after I created this house I created a teleport command that teleports you to the house. Here it is (The full command/createobject):
pawn Код:
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("UK-RP v0.1");
AddPlayerClass(299,1614.7527,-1498.3807,14.2381,90.9994,0,0,0,0,0,0); // newb spawn
// Special houses
CreateObject(3483, -2329.9060058594, -1619.1413574219, 489.66583251953, 1, 0, 0); // admin house
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(pay, 3, cmdtext);
dcmd(sethealth, 9, cmdtext);
// admin cmds---------------------------
dcmd(sendtopd, 8, cmdtext);
dcmd(sendtogym, 9, cmdtext);
dcmd(sendtoadmh, 10, cmdtext); // the dcmd define for my tp cmd
// text--------------------------------
dcmd(me, 2, cmdtext);
dcmd(do, 2, cmdtext);
// player connect----------------------
dcmd(register, 8, cmdtext);
dcmd(login, 5, cmdtext);
return 1;
}
dcmd_sendtoadmh(playerid, params[])
{
new targetid, pName[MAX_PLAYER_NAME];
if(sscanf(params, "i", targetid)) return SendClientMessage, COLOR_RED, "/sendtoadmh [playerid]");
else if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You have no access to this command");
else if(targetid == INVALID_PLAYER_ID || IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, "Player Not Found");
else
{
GetPlayerName(targetid, pName, MAX_PLAYER_NAME);
SetPlayerPos(targetid, -2329.9060058594, -1619.1413574219, 489.66583251953);
format(string, 128, "You transfered %s (ID: %i) to Admin's House", pName, targetid);
format(msg, 128, "You got transfered to Admin's House by Admin %s", playerid);
SendClientMessage(playerid, COLOR_LIGHTBULE, string);
SendClientMessage(targetid, COLOR_LIGHTBLUE, msg);
}
return 1;
}
OMGWTF?!?!?!
Any solutions or w/e ?