20.02.2011, 09:22
Okay, i got 2 teleport commands: /chiliad1 /chiliad.
The Problem is when i tipe /chiliad1 it brings me to /chiliad, and when i tipe /chiliad it brings me to the right possition...
The Problem is when i tipe /chiliad1 it brings me to /chiliad, and when i tipe /chiliad it brings me to the right possition...
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/chiliad", cmdtext, true, 5) == 0)
{
SetPlayerPos(playerid, -2235.6418,-1738.8710,480.8144);
SetPlayerFacingAngle(playerid, 206.4987);
GivePlayerWeapon(playerid, 46, 500);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
return 1;
}
if(strcmp("/chiliad1", cmdtext, true, 5) == 0)
{
SetPlayerPos(playerid, -2312.3948,-1663.9303,623.5829);
SetPlayerFacingAngle(playerid, 152.0016);
GivePlayerWeapon(playerid, 46, 500);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
return 1;
}
return 0;
}