public OnPlayerCommandText( playerid, cmdtext[ ] ) {
if( strcmp( \"/drift\", cmdtext, true ) == 0 ) {
if( GetPlayerState( playerid ) != PLAYER_STATE_ONFOOT ) {
return SendClientMessage( playerid, 0xFF0000AA, \"Nem vagy gyalogosan!\" );
} else {
PutPlayerInVehicle( playerid, CreateVehicle( 411, 351.5428,580.9429,1753.7499, 12, -1, -1, 60 );
}
return 1;
}
return 0;
}
Nem teszteltem, elvileg mûködnie kell.