02.02.2013, 08:54
Hello
I have a gamemode and its not created by Zcmd its a_samp...
So my question is "Can i use ZCMD"?
I have a gamemode and its not created by Zcmd its a_samp...
So my question is "Can i use ZCMD"?
CMD:mhill
{
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
SetVehiclePos(GetPlayerVehicleID(playerid),-2489.6118,-615.7424,132.1036);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 310.2000);
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
} else {
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid,-2538.4004,-612.1431,132.7109);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-2538.4004,-612.1431,132.7109);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/healme", true) == 0)
{
SetPlayerHealth(playerid, 100.00);
return 1;
}
return 0;
}
CMD:yourcommand(playerid, params[]) //playerid refers to the player using the cmd. params refers to the string parameter of the command.
{
//Here functions
return 1; //Returning the command.
}