// Somewhere in the millenium code
new gVehStoreVal[MAX_PLAYERS];
// OnPlayerConnect
gVehStoreVal[playerid] = INVALID_VEHICLE_ID;
OnPlayerCommandText(...)
{
if(strcmp(cmdtext, "/veh") == 0)
{
if(gVehStoreVal[playerid] == INVALID_VEHICLE_ID)
{
// Grab params here.
// https://sampwiki.blast.hk/wiki/Creating_Commands
// Create a vehicle after all params are okay
// https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
}
else
{
// Vehicle already created, notify player!
}
}
}