18.03.2011, 19:56
Quote:
Try this
pawn Код:
thanks |
Try this code:
pawn Код:
if(strcmp(cmdtext, "/v world1", true) == 0)
{
new car = GetPlayerVehicleID(car);
new carid[MAX_PLAYERS];
if(GetPlayerScore(playerid) >= 13)
{
carid[playerid] = car; // Just in case the player is in a vehicle.
SetPlayerVirtualWorld(playerid, 1);
if(IsPlayerInVehicle(playerid, car) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehicleVirtualWorld(car, 1);
PutPlayerInVehicle(playerid, car, 1);
}
} else {
SendClientMessage(playerid, COLOR_GREY, "You are not level 13.");
return 1;
}
return 1;
}