31.07.2013, 02:10
Yes the way to make it faster is to do
Although strcmp doesnt take two seconds to compare a string, the function that is "slower" is RemovePlayerFromVehicle.
He doesnt want to make a command, he only wants to check if the player's vehicle is on his own.
pawn Код:
else
{
SendFMessage(playerid, COLOR_LIGHTRED, " This car is owned by %s. You can't use it", VehicleInfo[vehicleid][Owner]);
RemovePlayerFromVehicle(playerid);
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1],Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1],Pos[2]+5);
}
He doesnt want to make a command, he only wants to check if the player's vehicle is on his own.