29.01.2012, 14:54
I think you might want to read over a few of the basics on the Wiki site, I have no idea if they are your own functions but I highly doubt that you created your own functions in replacement of those.
"Teletransportar" doesn't exist (not that I know of), and in it's place; you should use SetPlayerPos.
I also recommend that you use ZCMD instead of the old method you're using, as it's a lot quicker and a lot easier.
For example:
Much simpler, no? Re-read the Wiki site and make sure you get your functions correct, because your code is really, really messy.
You may also want to put your "SF" teleports inside parameters using sscanf, and you can find a tutorial for that in my signature which I wrote myself. Again, looking at your second command:
pawn Код:
if (!strcmp(cmdtext, "/sf2", true))
{
//C = SetTimerEx("CargandoMapa", 1000, 1,"e",playerid);
GameTextForPlayer(playerid, "~<~ ~b~LOS ~r~SANTOS ~>~", 5000, 3);
Teletransportar(playerid, 1521.8654,-1599.3501,13.5469);
return 1;}
if (!strcmp(cmdtext, "/prison", true))
{
Teletransportar(playerid,-1672.9810,-187.9245,14.1484);
return 1;
}
I also recommend that you use ZCMD instead of the old method you're using, as it's a lot quicker and a lot easier.
For example:
pawn Код:
COMMAND:sf2(playerid, params[])
{
GameTextForPlayer(playerid, "~<~ ~b~LOS ~r~SANTOS ~>~", 5000, 3);
SetPlayerPos(playerid, 1521.8654,-1599.3501,13.5469);
return 1;
}
pawn Код:
COMMAND:prison(playerid, params[])
{
SetPlayerPos(playerid, -1672.9810, -187.9245, 14.1484);
return 1;
}
You may also want to put your "SF" teleports inside parameters using sscanf, and you can find a tutorial for that in my signature which I wrote myself. Again, looking at your second command:
pawn Код:
COMMAND:shelp(playerid, params[])
{
SendClientMessage(playerid, COLOR_BLANCO, " ||shelp||");
SendClientMessage(playerid, COLOR_VERDECLARO, "1.For Commands Use /cmds And /cmds2");
SendClientMessage(playerid, COLOR_VERDECLARO, "2.For rules use /srules");
SendClientMessage(playerid, COLOR_VERDECLARO, "3.For teleports use /teles");
SendClientMessage(playerid, COLOR_VERDECLARO, "4.For Dm Zone Use /teles2 And /dm");
SendClientMessage(playerid, COLOR_VERDECLARO, "5.For health and armour use /heal and /armour");
SendClientMessage(playerid, COLOR_VERDECLARO, "6.If you see Hacker Use /report");
SendClientMessage(playerid, COLOR_VERDECLARO, "7.For special messenge use /pm");
SendClientMessage(playerid, COLOR_VERDECLARO, "8.Only Admin : /adminhc");
SendClientMessage(playerid, COLOR_BLANCO, " ||shelp||");
return 1;
}