09.12.2018, 12:54
Hi, i am new at SA-MP scripting, and every command i create, when test on server, it's saying: "Unknown Command"/
Any help?
For ex. Spawn Vehicle code:
Pawn CODE:
Any help?
For ex. Spawn Vehicle code:
Pawn CODE:
PHP код:
new Vehicle[MAX_PLAYERS];
COMMAND:kerr(playerid, params[]){
new car;
new string[128];
new first;
new second;
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
if(sscanf(params, "i", car, first, second)) return SendClientMessage(playerid, 0xF0F8FFAA, "Perdorimi: /kerr [VEHICLE ID]");
if(car < 400 || car > 611) return SendClientMessage(playerid, 0xF0F8FFAA, "ID i kerrit duhet te jete me e madhe se 399, dhe me e vogel se 612");
if(Vehicle[playerid] != 0){
DestroyVehicle(Vehicle[playerid]);
}
Vehicle[playerid] = CreateVehicle(car, X, Y, Z + 3.0, first, second, 1, -1);
format(string, sizeof(string), "Ti ke krijuar nje kerr, me id", car);
SendClientMessage(playerid, 0xF0F8FFAA, string);
return 1;
}