25.08.2012, 15:39
As you said in the topic,here's the cmds.
But next time post in correct section.
Sorry if mistakes are there because I did this through mobile.
I didnt get what do you mean by loadmats etc.
But next time post in correct section.
pawn Код:
//you need zcmd include also.
new heroin[MAX_PLAYERS];
CMD:loadheroin(playerid,params[])
{
#pragma unused params
new Float:x,Float:y,Float:z
GetPlayerPos(playerid,x,y,z);
heroin[playerid]=1;
GivePlayerMoney(playerid,-3000);
SetPlayerPos(playerid,xpos,ypos,zpos);//Replace Xpos, Ypos, Zpos with your coordinate.
SendClientMessage(playerid,0xFF0000,"Herion Loaded");
return 1;
}
CMD:unloadheroin(playerid,params[])
{
#pragma unused params
if(heroin[playerid] == 0)
return SendClientMessage(playerid,0xFF0000,"You haven't loaded heroin");
SetPlayerPos(playerid,x,y,z);
SendClientMessage(playerid,0xFF0000,"Heroin Unloaded");
GivePlayerMoney(playerid,-10000);
heroin[playerid]=0;
return 1;
}
I didnt get what do you mean by loadmats etc.