View Single Post
Old 11/05/2010, 02:25 AM   #4
coole210
Gangsta
 
Join Date: Jul 2008
Location: Canada
Posts: 995
Reputation: 84
Default Re: [Need Help] Explosive Help.

If that doesn't work ill give it a shot:

Code:
	if(strcmp(cmdtext, "/PlaceExplosive") == 0)
  {
    if(PlayerInfo[playerid][pMats] > 100)
		{
		  new Float:X,Float:Y,Float:Z;
		  GetPlayerPos(playerid,Float:X,Float:Y,Float:Z);
    	PlayerInfo[playerid][pMember] = CreateObject(1225,Float:X,Float:Y,Float:Z, 0.0, 0.0, A+180);
    else
    {
    	SendClientMessage(playerid,COLOR_GREY,"  Not enough Materials for that Weapon!");
		}
		return 1;
  }
coole210 is offline