31.10.2009, 12:28
Hi!
This is my script so far...
Yes, its a teleport! But I get the following error:
Plz help me fix this, thnk you!
This is my script so far...
pawn Код:
if(strcmp(cmdtext, "/driftaa", true)==0)
{
if(!Deathmatch[playerid] == 1)//The error is on this line!
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new car;
car = GetPlayerVehicleID(playerid);
SetVehiclePos(car,149.5744, 2487.4087, 41.2186);
SendClientMessage(playerid, COLOR_ORANGE, "Server: Welcome to the Old Abandoned Airport Drifting Region!");
}
else
SetPlayerPos(playerid,149.5744, 2487.4087, 41.2186);
SendClientMessage(playerid, COLOR_ORANGE, "Server: Welcome to the Old Abandoned Airport Drifting Region!");
}
else
SendClientMessage(playerid, COLOR_ORANGE,"Server: You cannot teleport whilst inside a DM. Use /quitdm first");
return 1;
Код:
Tag mismatch