Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/batercartao", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(BCGov(playerid))
- {
- if(PlayerToPoint(2, playerid,251.2632,64.8443,1003.6406))
- {
- if(BCEmp[playerid]==0)
- {
- BCEmp[playerid] = 1;
- if (pInfo[playerid][pProfissao] == 1)
- {
- if(pInfo[playerid][pSexo] ==1)
- {
- skincop[playerid] = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, 300);
- pInfo[playerid][pSkinM] = 300;
- skincop[playerid] = 1;
- }
- if(pInfo[playerid][pSexo] ==2)
- {
- skincop[playerid] = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, 306);
- pInfo[playerid][pSkinF] = 306;
- skincop[playerid] = 1;
- }
- }
- SendClientMessage(playerid, -1, "Você bateu o cartão , agora pode Trabalhar !");
- }
- else {
- BCEmp[playerid] = 0;
- SetPlayerColor(playerid,COLOR_WHITE);
- if(pInfo[playerid][pSexo] ==1)
- {
- SetPlayerSkin(playerid, skincop[playerid]);
- pInfo[playerid][pSkinM] = skincop[playerid];
- skincop[playerid] = 0;
- }
- if(pInfo[playerid][pSexo] == 2)
- {
- SetPlayerSkin(playerid, skincop[playerid]);
- pInfo[playerid][pSkinF] = skincop[playerid];
- skincop[playerid] = 0;
- }
- SendClientMessage(playerid, COLOR_LIGHTRED, "Você retirou a sua farda.");
- }
- }
- else {
- SendClientMessage(playerid, COLOR_GRAD2, "Você não está no local aonde bate o cartão !");
- return 1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment