18.03.2011, 13:55
Hello!
I have a problem with virtual world, because when I in the car, I write /vworld 1 and i teleported to virtual world 1, but with no car.
Command is here:
if(strcmp(cmdtext, "/vworld 1", true) == 0)
{
if(GetPlayerScore(playerid) >= 13)
{
SetPlayerVirtualWorld(playerid, 1);
}
else if(IsPlayerInVehicle(playerid, cartype))
{
new State=GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER)
{
SetVehicleVirtualWorld(cartype, 1);
PutPlayerInVehicle(playerid, cartype, 2);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You don't have 13th lvl");
}
return 1;
}
What is the problem? Sorry for my bad english. :S
I have a problem with virtual world, because when I in the car, I write /vworld 1 and i teleported to virtual world 1, but with no car.
Command is here:
if(strcmp(cmdtext, "/vworld 1", true) == 0)
{
if(GetPlayerScore(playerid) >= 13)
{
SetPlayerVirtualWorld(playerid, 1);
}
else if(IsPlayerInVehicle(playerid, cartype))
{
new State=GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER)
{
SetVehicleVirtualWorld(cartype, 1);
PutPlayerInVehicle(playerid, cartype, 2);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You don't have 13th lvl");
}
return 1;
}
What is the problem? Sorry for my bad english. :S