28.10.2012, 17:19
Thanks I did it
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tpme", cmdtext, true, 5) == 0)
{
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid, 2220.26, -1148.01, 1025.80);
SendClientMessage(playerid, -1, "Teleported!");
return 1;
}
return 0;
}
Also,how do I add the /cmds and /kill function because I know how to do it.But,now when I add it I get errors and crap.So,can you show it too me better plz
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tpme", cmdtext, true, 5) == 0)
{
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid, 2220.26, -1148.01, 1025.80);
SendClientMessage(playerid, -1, "Teleported!");
return 1;
}
return 0;
}
Also,how do I add the /cmds and /kill function because I know how to do it.But,now when I add it I get errors and crap.So,can you show it too me better plz