Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmdtext, "/PlaceExplosive") == 0)
- {
- if(PlayerInfo[playerid][pMats] > 100)
- if (PlayerInfo[playerid][pMats] != 100) return SendClientMessage(playerid, COLOR_GREY, "Get More Materials.");
- {
- else { SendClientMessage(playerid,COLOR_GREY," Not enough Materials For A Barrel!");
- {
- new Float:X, Float:Y, Float:Z, Float:A;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, A);
- PlayerInfo[playerid][pRoadblock] = CreateObject(1225, X, Y, Z, 0.0, 0.0, A+180);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement